package org.hxyjs.dao;

import org.hxyjs.entity.Field;
import org.hxyjs.page.PageInfo;
import java.util.List;

public interface FieldDao {

    //查询全部
    public List<Field> getAllFields() throws Exception;

    //按主键查询
    public Field getFieldByFno(String fno) throws Exception;

    //分页查询
    public List<Field> getFieldByPage(PageInfo pageInfo) throws Exception;


    //增删改的返回值都是整数
    //增加
    Integer addField(Field field) throws Exception;

    //删除
    Integer deleteFieldByFno(String fno) throws Exception;

    //修改
    Integer updateFieldByFno(Field field) throws Exception;


}
